import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
let defaultCity=localStorage.city?localStorage.city:"西安";
let state={
	city:defaultCity
};
let mutations={
	changeCity(state,cityName){
		this.state.city=cityName;
		localStorage.city=cityName;
	}
};
export default new Vuex.Store({
	state,
	mutations
}) 